package com.edu.compile.template.ftl.block;


import com.edu.compile.template.model.IfTrue;
import com.edu.compile.template.ftl.BranchNodeBlockParse;

import java.util.ArrayList;
import java.util.List;

/**
 * 条件
 *
 * @author yanzhao
 * @date 2021/10/24 14:05
 * @since 1.0.0
 */
public class IfElse extends BranchNodeBlockParse {

    public IfElse(String nodeId, String nodeType, String nodeName, String parentNodeId) {
        super(nodeId, nodeType, nodeName, parentNodeId);
    }

    private List<String> undefinedCheckList = new ArrayList<>();

    private IfTrue ifTrue;

    public void addUndefinedCheck(String param) {
        undefinedCheckList.add(param);
    }

    public List<String> getUndefinedCheckList() {
        return undefinedCheckList;
    }

    public IfTrue getIfTrue() {
        return ifTrue;
    }

    public void setIfTrue(IfTrue ifTrue) {
        this.ifTrue = ifTrue;
    }

}
